﻿@model Fcom.VNInsurance.Web.Models.Car
@{
    ViewBag.Title = "AddCar";
    Layout = "~/Views/Shared/_CpanelLayout.cshtml";
    var cat=(IEnumerable<Fcom.VNInsurance.Web.Models.AutoCategory>)ViewBag.AutoCategory;
}
<div class="container" style="padding:10px;">
    @using (Html.BeginForm()) { 
        <fieldset>
                 <legend style="color:#a60002;">Thêm xe ô tô  <span style="color:#000"></span></legend>  <a href="@Url.Action("Index", "CarManager")">trở về</a><br /><br />
            </fieldset>
            
                 <div class="form-group">

            <label for="txttitle">Tên  xe  (*)</label>
          @Html.TextBoxFor(m=>m.Name)
          </div>
            <div class="form-group">
                <label for="txttitle"> hãng xe  (*)</label>
                @Html.DropDownListFor(m=>m.AutoCatID,new SelectList(cat,"ID","Name"))
            </div>
        <button type="submit" class="btn btn-success">Lưu thông tin xe ô tô </button>
    }
        </div>
